var app = angular.module("wx", ["ui.router"]);

app.directive('ngTop', function() {
	return {
		templateUrl: "html/top.html"
	}
})

app.directive('ngDleft', function() {
	return {
		templateUrl: "html/Daniel/left.html"
	}
})
app.directive('ngFleft', function() {
	return {
		templateUrl: "html/Follow/left.html"
	}
})

app.config(
	['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider, $httpProvider) {
		$urlRouterProvider.otherwise('/');
		$stateProvider.state('index', {
				url: "/",
				templateUrl: "html/login.html",

			})
		  .state("zc", {
				url: "/zc",
				templateUrl: "html/zc.html"
			})
		.state("level", {
				url: "/level",
				templateUrl: "html/level.html"
			})
			.state("binding", {
				url: "/binding",
				templateUrl: "html/binding.html",
			})
		  //大牛
			.state("daniel", {
				url: "/daniel",
				templateUrl: "html/Daniel/index.html"
			})
			.state("daniel.list", {
				url: "/list",
				templateUrl: "html/Daniel/list.html"
			})
			.state('daniel.info', {
				url: "/info",
				templateUrl: 'html/Daniel/change.html'
			})
			.state('daniel.more', {
				url: "/more",
				templateUrl: 'html/Daniel/more.html'
			})
			//跟随者
			.state("follow", {
				url: "/follow",
				templateUrl: "html/Follow/index.html"
			})
			
			.state("follow.list", {
				url: "/list",
				templateUrl: "html/Follow/list.html"
			})
			.state('follow.info', {
				url: "/info",
				templateUrl: 'html/Follow/change.html'
			})
			.state('follow.more', {
				url: "/more",
				templateUrl: 'html/Follow/more.html'
			})

	}])